<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>embedme: libemb/inc/XmlData.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_574d9269cd334a9d02d8928365303d98.html">libemb</a></li><li class="navelem"><a class="el" href="dir_207aad82934689048a9003fb51f06f7f.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">XmlData.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_xml_data_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * This file is part of libemb.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * libemb is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * libemb is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with libemb.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * Project: Embedme</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * Author : FergusZeng</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * Email  : cblock@126.com</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * git    : https://git.oschina.net/cblock/embedme</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * Copyright 2014 @ ShenZhen ,China</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">*******************************************************************************/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __XML_DATA_H__</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __XML_DATA_H__</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;tinyxml.h&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">class </span><a class="code" href="class_xml_data.html">XmlData</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_xml_node.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_xml_node.html">XmlNode</a>{</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="class_xml_node.html#a9ba652be4d38ecccaa3933b5dde6401e">XmlNode</a>();</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="class_xml_node.html#a1584a23b1dfc8548fd5b915ff789e004">~XmlNode</a>();</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#ad26f634f1b8d75b3432fd76d2b2c5053">isNullNode</a>();</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_xml_node.html#aac005efa5665cbedbe18062343ab0bd4">childNum</a>();</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    std::string <a class="code" href="class_xml_node.html#ad51acdb93e8c2edce1d4d702c55c2638">serialize</a>();</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="class_xml_node.html">XmlNode</a> <a class="code" href="class_xml_node.html#a01d9453d3e4d3b0ca2619bcda6d77385">operator[]</a>(<span class="keywordtype">int</span> idx);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="class_xml_node.html">XmlNode</a> <a class="code" href="class_xml_node.html#a01d9453d3e4d3b0ca2619bcda6d77385">operator[]</a>(std::string name);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_xml_node.html#a18636be88588bd43c12c65ea56135f13">intValue</a>();</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_xml_node.html#ad14844c8c5e4b8e6c12d937c361319ba">doubleValue</a>();</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    std::string <a class="code" href="class_xml_node.html#a9a6654123228ad3542efd87ff9451708">stringValue</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#aef5ef6934bb3934f4944cd67c66df44d">setValue</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>&amp; value);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#aef5ef6934bb3934f4944cd67c66df44d">setValue</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>&amp; value);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#aef5ef6934bb3934f4944cd67c66df44d">setValue</a>(<span class="keyword">const</span> std::string&amp; value);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#a3ac599b30c45da921195e105cf49e0bb">addSubNode</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> <span class="keywordtype">int</span>&amp; value);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#a3ac599b30c45da921195e105cf49e0bb">addSubNode</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> <span class="keywordtype">double</span>&amp; value);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#a3ac599b30c45da921195e105cf49e0bb">addSubNode</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> std::string value=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#a43d08860cac8e7fe4898ce61d2f7dc35">getAttribute</a>(<span class="keyword">const</span> std::string&amp; attr, <span class="keywordtype">int</span>&amp; value);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#a43d08860cac8e7fe4898ce61d2f7dc35">getAttribute</a>(<span class="keyword">const</span> std::string&amp; attr, <span class="keywordtype">double</span>&amp; value);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#a43d08860cac8e7fe4898ce61d2f7dc35">getAttribute</a>(<span class="keyword">const</span> std::string&amp; attr, std::string&amp; value);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#a50f7f823f6f9dd3f4816aa3a808f7485">setAttribute</a>(<span class="keyword">const</span> std::string&amp; attr, <span class="keyword">const</span> <span class="keywordtype">int</span>&amp; value);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#a50f7f823f6f9dd3f4816aa3a808f7485">setAttribute</a>(<span class="keyword">const</span> std::string&amp; attr, <span class="keyword">const</span> <span class="keywordtype">double</span>&amp; value);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_node.html#a50f7f823f6f9dd3f4816aa3a808f7485">setAttribute</a>(<span class="keyword">const</span> std::string&amp; attr, <span class="keyword">const</span> std::string&amp; value);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_xml_data.html">XmlData</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    TiXmlNode* m_root;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    std::string m_name;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;};</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="class_xml_data.html">   70</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_xml_data.html">XmlData</a>{</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="class_xml_data.html#a53c5142aa69579a5c73a772b9758d928">XmlData</a>();</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="class_xml_data.html#a847aa0938ae7466fbcface61c883ecd8">~XmlData</a>();</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_data.html#a6917a040669cf9c048eedcf27ee20f7c">initWithDataString</a>(<span class="keyword">const</span> std::string &amp; content);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_data.html#a257fec6d724f2eca7b6357d528144b35">initWithContentOfFile</a>(<span class="keyword">const</span> std::string&amp; fileName);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_data.html#a463079e4851be2d59a30ab83b8f85710">saveAsFile</a>(<span class="keyword">const</span> std::string&amp; fileName);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    std::string <a class="code" href="class_xml_data.html#aaccbe1677c6cfc0b0cfa57d7227db266">serialize</a>();</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_data.html#a1b150f9e0b899ecd186767a8a82c4b2b">addSubNode</a>(<span class="keyword">const</span> std::string&amp; nodeName,<span class="keyword">const</span> <span class="keywordtype">int</span>&amp; value);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_data.html#a1b150f9e0b899ecd186767a8a82c4b2b">addSubNode</a>(<span class="keyword">const</span> std::string&amp; nodeName,<span class="keyword">const</span> <span class="keywordtype">double</span>&amp; value);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_xml_data.html#a1b150f9e0b899ecd186767a8a82c4b2b">addSubNode</a>(<span class="keyword">const</span> std::string&amp; nodeName,<span class="keyword">const</span> std::string value=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <a class="code" href="class_xml_node.html">XmlNode</a> <a class="code" href="class_xml_data.html#a116459823c48877fc8263723d320e7f1">operator[]</a>(std::string name);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    TiXmlDocument m_document;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;};</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="class_xml_node_html_ad51acdb93e8c2edce1d4d702c55c2638"><div class="ttname"><a href="class_xml_node.html#ad51acdb93e8c2edce1d4d702c55c2638">XmlNode::serialize</a></div><div class="ttdeci">std::string serialize()</div><div class="ttdoc">串行化XmlNode成字符串 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:77</div></div>
<div class="ttc" id="class_xml_data_html_aaccbe1677c6cfc0b0cfa57d7227db266"><div class="ttname"><a href="class_xml_data.html#aaccbe1677c6cfc0b0cfa57d7227db266">XmlData::serialize</a></div><div class="ttdeci">std::string serialize()</div><div class="ttdoc">串行化XmlData成字符串 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:555</div></div>
<div class="ttc" id="class_xml_node_html_a18636be88588bd43c12c65ea56135f13"><div class="ttname"><a href="class_xml_node.html#a18636be88588bd43c12c65ea56135f13">XmlNode::intValue</a></div><div class="ttdeci">int intValue()</div><div class="ttdoc">获取结点整数值 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:162</div></div>
<div class="ttc" id="class_xml_data_html_a847aa0938ae7466fbcface61c883ecd8"><div class="ttname"><a href="class_xml_data.html#a847aa0938ae7466fbcface61c883ecd8">XmlData::~XmlData</a></div><div class="ttdeci">~XmlData()</div><div class="ttdoc">XmlData析构函数 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:501</div></div>
<div class="ttc" id="class_xml_data_html_a53c5142aa69579a5c73a772b9758d928"><div class="ttname"><a href="class_xml_data.html#a53c5142aa69579a5c73a772b9758d928">XmlData::XmlData</a></div><div class="ttdeci">XmlData()</div><div class="ttdoc">XmlData构造函数 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:492</div></div>
<div class="ttc" id="class_xml_node_html_ad26f634f1b8d75b3432fd76d2b2c5053"><div class="ttname"><a href="class_xml_node.html#ad26f634f1b8d75b3432fd76d2b2c5053">XmlNode::isNullNode</a></div><div class="ttdeci">bool isNullNode()</div><div class="ttdoc">判断结点是否是空结点 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:62</div></div>
<div class="ttc" id="class_xml_node_html"><div class="ttname"><a href="class_xml_node.html">XmlNode</a></div><div class="ttdoc">XML结点类 </div><div class="ttdef"><b>Definition:</b> XmlData.h:36</div></div>
<div class="ttc" id="class_xml_data_html_a463079e4851be2d59a30ab83b8f85710"><div class="ttname"><a href="class_xml_data.html#a463079e4851be2d59a30ab83b8f85710">XmlData::saveAsFile</a></div><div class="ttdeci">bool saveAsFile(const std::string &amp;fileName)</div><div class="ttdoc">写入JSON数据到文件中 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:541</div></div>
<div class="ttc" id="class_xml_node_html_a9a6654123228ad3542efd87ff9451708"><div class="ttname"><a href="class_xml_node.html#a9a6654123228ad3542efd87ff9451708">XmlNode::stringValue</a></div><div class="ttdeci">std::string stringValue()</div><div class="ttdoc">获取结点字符串值 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:200</div></div>
<div class="ttc" id="class_xml_node_html_a50f7f823f6f9dd3f4816aa3a808f7485"><div class="ttname"><a href="class_xml_node.html#a50f7f823f6f9dd3f4816aa3a808f7485">XmlNode::setAttribute</a></div><div class="ttdeci">bool setAttribute(const std::string &amp;attr, const int &amp;value)</div><div class="ttdoc">设置结点整型属性值 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:429</div></div>
<div class="ttc" id="class_xml_node_html_aef5ef6934bb3934f4944cd67c66df44d"><div class="ttname"><a href="class_xml_node.html#aef5ef6934bb3934f4944cd67c66df44d">XmlNode::setValue</a></div><div class="ttdeci">bool setValue(const int &amp;value)</div><div class="ttdoc">设置结点整数值 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:232</div></div>
<div class="ttc" id="class_xml_node_html_aac005efa5665cbedbe18062343ab0bd4"><div class="ttname"><a href="class_xml_node.html#aac005efa5665cbedbe18062343ab0bd4">XmlNode::childNum</a></div><div class="ttdeci">int childNum()</div><div class="ttdoc">获取子结点的个数 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:91</div></div>
<div class="ttc" id="class_xml_node_html_ad14844c8c5e4b8e6c12d937c361319ba"><div class="ttname"><a href="class_xml_node.html#ad14844c8c5e4b8e6c12d937c361319ba">XmlNode::doubleValue</a></div><div class="ttdeci">double doubleValue()</div><div class="ttdoc">获取结点浮点数值 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:181</div></div>
<div class="ttc" id="class_xml_data_html"><div class="ttname"><a href="class_xml_data.html">XmlData</a></div><div class="ttdoc">XML数据类 </div><div class="ttdef"><b>Definition:</b> XmlData.h:70</div></div>
<div class="ttc" id="class_xml_node_html_a01d9453d3e4d3b0ca2619bcda6d77385"><div class="ttname"><a href="class_xml_node.html#a01d9453d3e4d3b0ca2619bcda6d77385">XmlNode::operator[]</a></div><div class="ttdeci">XmlNode operator[](int idx)</div><div class="ttdoc">根据索引获取兄弟结点 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:112</div></div>
<div class="ttc" id="class_xml_data_html_a116459823c48877fc8263723d320e7f1"><div class="ttname"><a href="class_xml_data.html#a116459823c48877fc8263723d320e7f1">XmlData::operator[]</a></div><div class="ttdeci">XmlNode operator[](std::string name)</div><div class="ttdoc">根据名称获取子结点 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:635</div></div>
<div class="ttc" id="class_xml_node_html_a9ba652be4d38ecccaa3933b5dde6401e"><div class="ttname"><a href="class_xml_node.html#a9ba652be4d38ecccaa3933b5dde6401e">XmlNode::XmlNode</a></div><div class="ttdeci">XmlNode()</div><div class="ttdoc">XmlNode构造函数 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:42</div></div>
<div class="ttc" id="class_xml_data_html_a1b150f9e0b899ecd186767a8a82c4b2b"><div class="ttname"><a href="class_xml_data.html#a1b150f9e0b899ecd186767a8a82c4b2b">XmlData::addSubNode</a></div><div class="ttdeci">bool addSubNode(const std::string &amp;nodeName, const int &amp;value)</div><div class="ttdoc">增加整数型子结点 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:576</div></div>
<div class="ttc" id="class_xml_data_html_a257fec6d724f2eca7b6357d528144b35"><div class="ttname"><a href="class_xml_data.html#a257fec6d724f2eca7b6357d528144b35">XmlData::initWithContentOfFile</a></div><div class="ttdeci">bool initWithContentOfFile(const std::string &amp;fileName)</div><div class="ttdoc">读取XML文件内容进行初始化 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:526</div></div>
<div class="ttc" id="class_xml_node_html_a1584a23b1dfc8548fd5b915ff789e004"><div class="ttname"><a href="class_xml_node.html#a1584a23b1dfc8548fd5b915ff789e004">XmlNode::~XmlNode</a></div><div class="ttdeci">~XmlNode()</div><div class="ttdoc">XmlNode析构函数 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:52</div></div>
<div class="ttc" id="class_xml_data_html_a6917a040669cf9c048eedcf27ee20f7c"><div class="ttname"><a href="class_xml_data.html#a6917a040669cf9c048eedcf27ee20f7c">XmlData::initWithDataString</a></div><div class="ttdeci">bool initWithDataString(const std::string &amp;content)</div><div class="ttdoc">读取XML字符串进行初始化 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:510</div></div>
<div class="ttc" id="class_xml_node_html_a3ac599b30c45da921195e105cf49e0bb"><div class="ttname"><a href="class_xml_node.html#a3ac599b30c45da921195e105cf49e0bb">XmlNode::addSubNode</a></div><div class="ttdeci">bool addSubNode(const std::string &amp;name, const int &amp;value)</div><div class="ttdoc">增加整数型子结点 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:290</div></div>
<div class="ttc" id="class_xml_node_html_a43d08860cac8e7fe4898ce61d2f7dc35"><div class="ttname"><a href="class_xml_node.html#a43d08860cac8e7fe4898ce61d2f7dc35">XmlNode::getAttribute</a></div><div class="ttdeci">bool getAttribute(const std::string &amp;attr, int &amp;value)</div><div class="ttdoc">获取结点整型属性值 </div><div class="ttdef"><b>Definition:</b> XmlData.cpp:355</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2016年 七月 7日 星期四 19:49:37 , 为 embedme使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
